import request from '@/util/request.js'


//告警规则查询
export const articleRuleListService = (params) => {
    return request.post('/rules', params )
}

//告警规则添加
export const addAlertRuleService = (alertRuleData) =>{
    return request.post('/rules/addAlertRule',alertRuleData);
}

//告警规则更新
export const alertRuleUpdateService = (alertRuleData) =>{
    return request.put('/rules',alertRuleData);
}

//告警规则删除
export const alertRuleDeleteService = (id) => {
    return request.delete(`/rules/${id}`);
}

